-- GENERATED SPELL FOR [Dragonflayer Lieutenant] --


function spell0_24169(pUnit, Event) --@Head Slash,n/a--
pUnit:FullCastSpellOnTarget(48245,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24169', 8000, 1)
end

function spell1_24169(pUnit, Event) --@Risky Feint,n/a--
pUnit:FullCastSpellOnTarget(48250,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24169', 5261, 1)
end

function Sorts_24169(pUnit, Event)
local choix_sorts_24169 = math.random(0, 1)
if choix_sorts_24169 == 0 then
pUnit:RegisterEvent('spell0_24169', 1, 1)
end
if choix_sorts_24169 == 1 then
pUnit:RegisterEvent('spell1_24169', 1, 1)
end
end

function mob24169_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24169', math.random(1500, 3000), 1)
end

function mob24169_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24169_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24169_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24169, 1, 'mob24169_Action')
RegisterUnitEvent(24169, 2, 'mob24169_Leave')
RegisterUnitEvent(24169, 3, 'mob24169_Kill')
RegisterUnitEvent(24169, 4, 'mob24169_Die')
